package y.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/*lombok自动生成get、set方法*/
//@Data
//@Getter
//@Setter
public class MybatisUser {
    private int id;
    private  String name;
    private  String phone;

    public MybatisUser() {
    }

    public MybatisUser(int id, String name, String phone) {
        this.id = id;
        this.name = name;
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "MybatisUser{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}
